/*
 * StringMatch.h
 *
 *  Created on: 2013. 10. 30.
 *      Author: jjaehuny
 */

#ifndef PROJECTZ_NRESOURCE_STRINGMATCH_H_
#define PROJECTZ_NRESOURCE_STRINGMATCH_H_

#include <string>
#include <map>
#include <Toolkit/Str.h>

namespace ProjectZ { namespace NResource {

class StringMatch
{
public:
	struct Flyweight
	{
		std::string	 _name;
		int 			_value;
	};

public:
	StringMatch();
	virtual ~StringMatch();

	bool	LoadResource();
	bool 	GetValue(std::string name, int & value);

private:
	void	Clear();

private:
	std::map<std::string, Flyweight *> _clsStringMatchTree;
};

} /*NResource*/ } /* namespace ProjectZ */

#endif /* PROJECTZ_NRESOURCE_STRINGMATCH_H_ */
